package api.my_api;

import java.util.Arrays;

public class Test4 {
    public static void main(String[] args) {
        String s = "1.2.3.4.5";
        int[] ints = Arrays.stream(s.split("[.]")).mapToInt(Integer::parseInt).toArray();
        System.out.println(Arrays.toString(ints));
    }
}
